import service from '@/utils/request'

// @Tags InterviewType
// @Summary 创建interviewType表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.InterviewType true "创建interviewType表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /interviewTypes/createInterviewType [post]
export const createInterviewType = (data) => {
  return service({
    url: '/interviewTypes/createInterviewType',
    method: 'post',
    data
  })
}

// @Tags InterviewType
// @Summary 删除interviewType表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.InterviewType true "删除interviewType表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /interviewTypes/deleteInterviewType [delete]
export const deleteInterviewType = (data) => {
  return service({
    url: '/interviewTypes/deleteInterviewType',
    method: 'delete',
    data
  })
}

// @Tags InterviewType
// @Summary 批量删除interviewType表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除interviewType表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /interviewTypes/deleteInterviewType [delete]
export const deleteInterviewTypeByIds = (data) => {
  return service({
    url: '/interviewTypes/deleteInterviewTypeByIds',
    method: 'delete',
    data
  })
}

// @Tags InterviewType
// @Summary 更新interviewType表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.InterviewType true "更新interviewType表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /interviewTypes/updateInterviewType [put]
export const updateInterviewType = (data) => {
  return service({
    url: '/interviewTypes/updateInterviewType',
    method: 'put',
    data
  })
}

// @Tags InterviewType
// @Summary 用id查询interviewType表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.InterviewType true "用id查询interviewType表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /interviewTypes/findInterviewType [get]
export const findInterviewType = (params) => {
  return service({
    url: '/interviewTypes/findInterviewType',
    method: 'get',
    params
  })
}

// @Tags InterviewType
// @Summary 分页获取interviewType表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取interviewType表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /interviewTypes/getInterviewTypeList [get]
export const getInterviewTypeList = (params) => {
  return service({
    url: '/interviewTypes/getInterviewTypeList',
    method: 'get',
    params
  })
}

export const getInterviewTypeListTyp = (params) => {
  return service({
    url: '/interviewTypes/getInterviewTypeListTyp',
    method: 'get',
    params
  })
}



